# coding=utf-8
from PyQt4.QtGui import QDialog
from PyQt4.QtGui import QVBoxLayout

from views.widgets.pushButton import PushButton


class WelcomeView(QDialog):

    def __init__(self, parent=None):
        super(WelcomeView, self).__init__(parent)
        self.setWindowTitle('Welcome')
        self.resize(200, 150)
        # buttons
        self.twoMenGameButton = PushButton('Two Men Game', self)
        self.twoMenGameButton.show()
        self.manMachineGameButton = PushButton('Man Machine Game', self)
        self.twoMenGameButton.show()
        self.onlineGameButton = PushButton('Online Game', self)
        self.onlineGameButton.show()
        self.quitButton = PushButton('Quit', self)
        # layout
        self.mainLayout = QVBoxLayout(self)
        self.mainLayout.addWidget(self.twoMenGameButton)
        self.mainLayout.addWidget(self.manMachineGameButton)
        self.mainLayout.addWidget(self.onlineGameButton)
        self.mainLayout.addWidget(self.onlineGameButton)
        self.mainLayout.addWidget(self.quitButton)
        self.setLayout(self.mainLayout)

    def paintEvent(self, event):
        pass
